package string;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "thinking in java";  //java编程思想(Java经典书---工具书)
        boolean starts = str.startsWith("thinking");
        System.out.println(starts);
        boolean ends = str.endsWith(".java");
        System.out.println(ends);
    }
}
